com.sun.n1.sps.model.host
Interface PhysicalCriteria


public interface PhysicalCriteria

A physical criteria specifies a dynamic selection criteria for matching hosts that are either physical or virtual (or both). This class is used in conjunction with the HostSearchCriteria class to create a dynamic, user-specified host search.


Method Summary
 boolean getIncludePhysical()
          Returns true if physical hosts should be matched.
 boolean getIncludeVirtual()
          Returns true if virtual hosts should be matched.
 boolean isEmptyCriteria()
          Returns false if at least one option is enabled, true otherwise.
 void setIncludePhysical(boolean includePhysical)
          Set to true if physical hosts should be matched.
 void setIncludeVirtual(boolean includeVirtual)
          Set to true if virtual hosts should be matched.
 

Method Detail

getIncludePhysical

boolean getIncludePhysical()
Returns true if physical hosts should be matched. This value is false by default.

Returns:
true if physical hosts should be matched.

setIncludePhysical

void setIncludePhysical(boolean includePhysical)
Set to true if physical hosts should be matched.

Parameters:
includePhysical - true if physical hosts should be matched.

getIncludeVirtual

boolean getIncludeVirtual()
Returns true if virtual hosts should be matched. This value is false by default.

Returns:
true if virtual hosts should be matched.

setIncludeVirtual

void setIncludeVirtual(boolean includeVirtual)
Set to true if virtual hosts should be matched.

Parameters:
includeVirtual - true if virtual hosts should be matched.

isEmptyCriteria

boolean isEmptyCriteria()
Returns false if at least one option is enabled, true otherwise. Note that if the result is true, then this criteria does not match any hosts.

Returns:
false if at least one option is enabled.